# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-pcem
pkgver=0_git20180812
pkgrel=0
_commit="1955c2127990cfdf4c594b35b466e8503d626fa7"
pkgdesc="libretro port of PCem"
url="https://github.com/libretro/libretro-pcem"
arch="all !aarch64 !armv7 !armhf !ppc64le !s390x !x86 !riscv64"
license="GPL-2.0-only"
makedepends="linux-headers"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/libretro-pcem/archive/$_commit.tar.gz"
builddir="$srcdir/libretro-pcem-$_commit"
options="!check" # No tests

build() {
	make -C src -f Makefile.libretro
}

package() {
	install -Dm644 src/pcem_libretro.so "$pkgdir"/usr/lib/libretro/pcem_libretro.so
}

sha512sums="fb71876db6b8bebe0a1f1cd673bcda2c3cb537a4dc4bcdbe802f2b0424bb7ed9a2bac7df107cc751af2dbc0f31f01bcafe91633c1560d358763e45a30ea5fd07  libretro-pcem-1955c2127990cfdf4c594b35b466e8503d626fa7.tar.gz"
